<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	img {
		width: 50px;
		height: 50px;
	}
</style>
</head>
<body>
	<form action="save" method="post" enctype="multipart/form-data">
		<input name="id" type="hidden" th:value="${user?.id }"/>
		账号：<input name="userName" th:value="${user?.userName }"/><br/>
		密码：<input name="userPassword" th:value="${user?.userPassword }"/><br/>
		姓名：<input name="userRealName" th:value="${user?.userRealName }"/><br/>
		年龄：<input name="userAge" th:value="${user?.userAge }"/><br/>
		头像：<input type="file" name="img"/>
		<img th:src="@{${user?.userHeadimg }}" />
		<br/>
		<input type="submit" value="保存"/>
	</form>
</body>
</html>